﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LocalCharge.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <!--#include virtual="include/Head.ascx"-->
    <script type="text/javascript">
        function getUrlVars() {
            var vars = {};
            var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, key, value) {
                vars[key] = value;
            });
            return vars;
        }
        function doEdit(strID) {
            var vnpage = getUrlVars()['page_number'];
            if (vnpage)
                url = "LocalCharge.Edit.aspx?id=" + strID + "&page_number=" + vnpage;
            else
                url = "LocalCharge.Edit.aspx?id=" + strID;
            window.location.href = url;
            //var win=window.open(url, '_blank');
            //win.focus();
        }
        function doDelete(strID, strName) {
            if (confirm('Bạn có thực sự muốn xóa ' + strName + '?')) {
                var vnpage = getUrlVars()['page_number'];
                var vChar = getUrlVars()['letter'];
                var strHref = "";
                if (vnpage)
                    strHref = "LocalCharge.aspx?action=delete&ID=" + strID + "&page_number=" + vnpage;
                else
                    strHref = "LocalCharge.aspx?action=delete&ID=" + strID;

                if (vChar)
                    window.location.href = strHref + "&letter=" + vChar;
                else
                    window.location.href = strHref;
            }
        }
    </script>
    <style type="text/css">
        .thheader{
        font-weight:bold;vertical-align:middle;text-align:center;
        font-size:11px;
        border:1px solid #ccc !important;
        line-height: 7px !important;;
        }
         .rdLocalChargeStyle{
            margin-left: 20px;
            background: transparent;
           
            
            
        }
        .rdLocalChargeStyle table td,
        .rdLocalChargeStyle table{
            border-collapse: separate !important;
            background: #e5e5e5;
            
        }
        .rdLocalChargeStyle label
        {
        margin-top: -16px;
        padding-left: 30px;
         font-weight:bold;
}
     </style>
</head>
<body>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/top.ascx"-->
        </div>
        <div id="main-content1">
            <h2>
                CHI PHÍ ĐỊA PHƯƠNG</h2>
            <div class="clear">
            </div>
            <div class="content-box">
                <form id="frmLocalCosts" runat="server">
                <div class="content-box-header">
                    <input id="btnAddNew" type="button" style="float: right; margin: 9px 10px;" class="button"
                        runat="server" value="Add new" onclick="window.open('LocalCharge.Edit.aspx')" />
                    <div class="rdLocalChargeStyle">
                        <asp:RadioButtonList ID="rdLocalChargeType" runat="server" AutoPostBack="TRUE" RepeatDirection="Horizontal"
                            Width="400px" OnSelectedIndexChanged="rdLocalChargeType_SelectedIndexChanged">
                            <%--<asp:ListItem Value="1" Text="Mua vào"></asp:ListItem>
                                <asp:ListItem Value="2" Text="Bán chưa VAT "></asp:ListItem>
                                <asp:ListItem Value="3" Text="Bán có VAT"></asp:ListItem>--%>
                        </asp:RadioButtonList>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <%=strAlphaBet%>
                <fieldset>
                    <asp:Repeater ID="rptData" runat="server">
                        <ItemTemplate>
                            <tr onmouseover="this.style.background='#dbf0c9'" onmouseout="this.style.background='#ffffff'"
                                localcostid='<%#Eval("ID") %>'>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "INDEX")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "CARR")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "EXPORTATION_OTHC_20DC")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "EXPORTATION_OTHC_40HC")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "EXPORTATION_OTHC_20RF")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "EXPORTATION_OTHC_40RF")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "EXPORTATION_SEAL_BOX")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "EXPORTATION_DOC_SET")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "EXPORTATION_TELEX_BL")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "EXPORTATION_MNF_BL")%>
                                </td>
                                <%--<td>
                                        <%# DataBinder.Eval(Container.DataItem, "EXPORTATION_AMS_BL")%>
                                    </td>--%>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPORTATION_DTHC_20DC")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPORTATION_DTHC_40HC")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPORTATION_DTHC_20RF")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPORTATION_DTHC_40RF")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPORTATION_CONTCLEANING_20DC")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPORTATION_CONTCLEANING_40DC")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPORTATION_DO_BL")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPORTATION_HL_BL")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPEXP_EBS_20DC")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPEXP_EBS_40HC")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPEXP_CIC_20DC")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "IMPEXP_CIC_40HC")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "LPF_DAYS")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "LPF_FEE")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "NOTE")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "UPDATE")%>
                                </td>
                                <%if ((Session["LocalCharges"] != null) && (int.Parse(Session["LocalCharges"].ToString()) >= 3))
                                                  {%>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "Action")%>
                                </td>
                                <%} %>
                            </tr>
                        </ItemTemplate>
                        <HeaderTemplate>
                            <table cellspacing="0" cellpadding="0" width="100%" border="0" class="adminlist"
                                editcellcontent="true">
                                <thead>
                                    <tr>
                                        <th align="center" rowspan="3" width="30px">
                                            Index
                                        </th>
                                        <th align="center" rowspan="3">
                                            Carr
                                        </th>
                                        <th align="center" colspan="8">
                                            EXPORTATION
                                        </th>
                                        <th align="center" colspan="8">
                                            IMPORTATION
                                        </th>
                                        <th align="center" colspan="4">
                                            IMP & EXP
                                        </th>
                                        <th align="center" colspan="2">
                                            LPF
                                        </th>
                                        <th align="center" rowspan="3">
                                            Note
                                        </th>
                                        <th align="center" rowspan="3">
                                            Update
                                        </th>
                                        <%if ((Session["LocalCharges"] != null) && (int.Parse(Session["LocalCharges"].ToString()) >= 3))
                                              {%>
                                        <th align="center" rowspan="3" width="70px">
                                            Action
                                        </th>
                                        <%} %>
                                    </tr>
                                    <tr>
                                        <th align="center" colspan="4">
                                            OTHC
                                        </th>
                                        <th align="center">
                                            Seal
                                        </th>
                                        <th align="center">
                                            DOC
                                        </th>
                                        <th align="center">
                                            Telex
                                        </th>
                                        <th align="center">
                                            MNF
                                        </th>
                                        <%--<th align="center">
                                                AMS
                                            </th>--%>
                                        <th align="center" colspan="4">
                                            DTHC
                                        </th>
                                        <th align="center" colspan="2">
                                            Cont cleaning
                                        </th>
                                        <th align="center">
                                            D/O
                                        </th>
                                        <th align="center">
                                            H/L
                                        </th>
                                        <th align="center" colspan="2">
                                            EBS
                                        </th>
                                        <th align="center" colspan="2">
                                            CIC
                                        </th>
                                        <th align="center" rowspan="2">
                                            Days
                                        </th>
                                        <th align="center" rowspan="2">
                                            Fee
                                        </th>
                                    </tr>
                                    <tr style="background: #CCC;">
                                        <th align="center">
                                            20'dc
                                        </th>
                                        <th align="center">
                                            40'hc
                                        </th>
                                        <th align="center">
                                            20'rf
                                        </th>
                                        <th align="center">
                                            40'rf
                                        </th>
                                        <th align="center">
                                            box
                                        </th>
                                        <th align="center">
                                            set
                                        </th>
                                        <th align="center">
                                            B/L
                                        </th>
                                        <%--<th align="center">
                                                B/L
                                            </th>--%>
                                        <th align="center">
                                            B/L
                                        </th>
                                        <th align="center">
                                            20'dc
                                        </th>
                                        <th align="center">
                                            40'hc
                                        </th>
                                        <th align="center">
                                            20'rf
                                        </th>
                                        <th align="center">
                                            40'rf
                                        </th>
                                        <th align="center">
                                            20'dc
                                        </th>
                                        <th align="center">
                                            40'dc
                                        </th>
                                        <th align="center">
                                            B/L
                                        </th>
                                        <th align="center">
                                            B/L
                                        </th>
                                        <th align="center">
                                            20'dc
                                        </th>
                                        <th align="center">
                                            40'hc
                                        </th>
                                        <th align="center">
                                            20'dc
                                        </th>
                                        <th align="center">
                                            40'hc
                                        </th>
                                    </tr>
                                </thead>
                        </HeaderTemplate>
                        <FooterTemplate>
                            </TABLE>
                        </FooterTemplate>
                    </asp:Repeater>
                </fieldset>
                <div class="clear">
                </div>
                <div id="footer">
                    <%=strPager%>
                </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
